package com.bj58.aop.annotation;

import javax.inject.Inject;
import javax.inject.Singleton;
import com.bj58.di.entity.Book;
import com.bj58.di.service.IBookService;

@Singleton
public class BookFactory4 {

	@Inject
	private IBookService bookService;
	

	@NotAdult(age=20)
	public Book getBook(){
		return bookService.getBook();
	}

}
